package uicgas.register.remotecmds;

import javax.swing.JOptionPane;

import uicgas.globaldata.MessagePayload;
import uicgas.register.Comunications;
import uicgas.register.RegisterLogic;

public class PumpState
{
	private RegisterLogic register;

	public PumpState(RegisterLogic register2, Comunications comunications)
	{
		this.register = register2;
	}
	
	public void executeRemoteCommand()
	{
		JOptionPane.showMessageDialog(null, "Got Pump State", "PUMPSTATE", 0);
	}
	
	public void executeRemoteCommand(RegisterLogic Register)
	{
		this.register = Register;
	}

	public void executeRemoteCommand(MessagePayload inData)
	{
		register.updatePumps();
	}
}
